namespace array_demo.Model.Dictionary
{
    public class LinkedDictionary<Key, Value> : IDictionary<Key, Value>
    {
        private LinkedList3<Key, Value> linkedList3;

        public LinkedDictionary()
        {
            linkedList3 = new LinkedList3<Key, Value>();
        }

        public bool IsEmpty => linkedList3.IsEmpty;

        public int Count => linkedList3.Count;

        public void Add(Key key, Value value)
        {
            linkedList3.AddNode(key, value);
        }

        public bool contains(Key key)
        {
            return linkedList3.IsContains(key);
        }

        public Value Get(Key key)
        {
            return linkedList3.GetValue(key);
        }

        public void Remove(Key key)
        {
            linkedList3.Remove(key);
        }

        public void Set(Key key, Value value)
        {
            linkedList3.Set(key, value);
        }
    }
}